#include<iostream>
#include<fstream>
#include<string>
using namespace std;
/**
 * 
 */
void main_extracted() {
	ifstream ifs("test.txt");
	ofstream ofs("test.out.txt");
	string line;
	while(getline(ifs,line))
	{
		cout<<line<<endl;
		ofs<<line;
	}
}
int main()
{
	main_extracted();
	
}